home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5666 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: locutus.rchland.ibm.com!usenet
  2. From: pstaite@vnet.ibm.com
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: REBOOTING?
  5. Date: 5 Feb 1996 16:18:27 GMT
  6. Organization: IBM OS/2 Device Driver Development  Rochester, MN
  7. Message-ID: <4f5akj$6ud@locutus.rchland.ibm.com>
  8. References: <3115AF63.8C1@coral.senod.uwf.edu>
  9. Reply-To: pstaite@vnet.ibm.com
  10. NNTP-Posting-Host: warpone.rchland.ibm.com
  11. X-Newsreader: IBM NewsReader/2 v1.2
  12.  
  13. In <3115AF63.8C1@coral.senod.uwf.edu>, Tim <rforbess@coral.senod.uwf.edu> writes:
  14. >What is the C++ code to make a computer reboot? Thanx
  15.  
  16. This is highly system dependent...
  17.  
  18. Unix:
  19.  
  20. cout << "Hey operator, type" << endl;
  21. cout << "/usr/local/etc/reboot" << endl;
  22.  
  23. Well, that works on my AIX system ;-)
  24.  
  25.  
  26. OS/2:
  27.  
  28. cout << "Type \"shutdown\" in at the OS/2 command prompt" << endl;
  29.  
  30.  
  31. Windoze:
  32.  
  33. cout << "Exit to DOS, see DOS command." << endl;
  34.  
  35.  
  36. DOS:
  37.  
  38. cout << "Hey user, hit that button marked \"Reset\"" << endl;
  39.  
  40.  
  41. VMS:
  42.  
  43. cout << "Ask the sysadmin to reboot." << endl;
  44.  
  45.  
  46. MVS:
  47.  
  48. cout << "You don't want to..." << endl;
  49.  
  50.  
  51. AS/400:
  52.  
  53. cout << "Enter: QSECOFR SHUTDOWN" << endl;
  54.  
  55. Or something like that...
  56.  
  57.  
  58. Mac:
  59.  
  60. cout << "Click on ..." << endl;
  61.  
  62.  
  63. Seriously, there is a flag/BIOS call you can make if it is a DOS PC 
  64. system.  You'd be better off asking in one of the msdos programming 
  65. groups.
  66.  
  67.  
  68.  
  69. Phil Staite, team OS/2
  70. internet: pstaite@vnet.ibm.com  internal: pstaite@rchland
  71.  
  72.